package com.chen.mapper;

import com.chen.pojo.Dict;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author chen
 * @date 2022/5/12 9:03
 */
@Mapper
public interface DictMapper {

    @Select("select *from dict")
    List<Dict> getDict();


    @Insert("insert into dict(content) value(#{content})")
    int addDict(Dict dict);
}
